package com.atguigu.patterns.bridge;

public class Client {

	public static void main(String[] args) {
		
		//获取折叠式手机 (样式 + 品牌 )
		
		Phone phone1 = new FoldedPhone(new XiaoMi());

		System.out.println(phone1.open());
		System.out.println(phone1.call());
		System.out.println(phone1.close());

		System.out.println("=======================");
		
		Phone phone2 = new FoldedPhone(new Vivo());

		System.out.println(phone2.open());
		System.out.println(phone2.call());
		System.out.println(phone2.close());

		System.out.println("==============");
		
		UpRightPhone phone3 = new UpRightPhone(new XiaoMi());

		System.out.println(phone3.open());
		System.out.println(phone3.call());
		System.out.println(phone3.close());

		System.out.println("==============");
		
		UpRightPhone phone4 = new UpRightPhone(new Vivo());

		System.out.println(phone4.open());
		System.out.println(phone4.call());
		System.out.println(phone4.close());
	}

}
